<?php
/*
 * @Author: cwj
 * @Date: 2019-11-12 12:35:21
 * @LastEditTime : 2019-12-25 14:37:57
 * @LastEditors  : Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /ahsmp_3/route/api.php
 */

Route::group('api/v3',  function () {
    Route::rule('export/netfilter', 'api/Export/netfilterLog');//Netfilter日志导出
    Route::rule('export/rule', 'api/Export/rule');//规则导出


    Route::rule('auth/online', 'api/Auth/online');//拉取线上授权

    Route::rule('client/update/timeout', 'api/ProductUpdate/timeOut');//超时断连问题
    Route::rule('client/update/getpackagepath', 'api/ProductUpdate/getPackagePath');//获取客户端更新包内容
    Route::rule('client/update/downloadresult', 'api/ProductUpdate/downloadResult');//下载客户端更新包结果通知
    Route::rule('update/updateresult', 'api/ProductUpdate/updateResult');//更新包执行结果通知
    Route::rule('config/get/syslog', 'api/Config/syslog');//获取syslog配置
    Route::rule('config/get/database', 'api/Config/database');//获取数据库配置
    Route::rule('config/set/portconfig', 'api/Config/portConfig');//修改端口配置
    Route::rule('config/get/server', 'api/Config/serverConfig');//获取服务端配置

    Route::rule('config/reset/password', 'api/Config/modifyPassword');//重置超级管理员密码

    Route::rule('client/register', 'api/Register/reg');//注册
    Route::rule('client/login/:module', 'api/Login/login');//登陆

    Route::rule('middleware/register', 'api/ServerMiddleware/register');//中间键注册

});